import request from '@/utils/request'


// 查询所有 网格列表
export function getAreaList() {
    return request({
        url: '/guser/area/list',
        method: 'get'
    })
}


// 网格预警 类型分组
export function gwarningTypeGroup(data) {
    return request({
        url: '/guser/gwarning/type/group',
        method: 'post',
        data: data
    })
}

// 网格预警 列表
export function gwarningList(data) {
    return request({
        url: '/guser/gwarning/list',
        method: 'post',
        data: data
    })
}

// 网格预警 分页
export function gwarningPage(data) {
    return request({
        url: '/guser/gwarning/page',
        method: 'post',
        data: data
    })
}

// 网格统计
export function guserGwarningArea() {
    return request({
        url: '/guser/gwarning/area/group',
        method: 'get'
    })
}

// 处理网格预警
export function warningHandle(data) {
    return request({
        url: '/guser/gwarning/handle',
        method: 'post',
        data: data
    })
}